import os
import sys
import django

base_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
sys.path.append(base_dir)
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "zyy_django.settings")
django.setup()

from apps.login.models import UserInfo


n = [
    "邓安翔","邓安晏","邓安宜","邓安怡","邓安易","邓安志","邓昂然","邓昂雄","邓宾白","邓宾鸿","邓宾实"
    "孙子淇","孙一丹","孙宛彤","孙菱彤","孙珊彤","孙娅瞳","孙语瞳","孙浩翔","孙韦迦","孙帛挤","孙钰轩"
]
nameList = []

import random
for i in range(len(n)):
    nameList.append(n[random.randint(0,len(n)-1)])

print(nameList)
print(len(nameList))


for i in nameList:
    UserInfo.objects.create(
        phone="13568512545",
        nickName=i,
        avatarUrl="https://zzy-1307622602.cos.ap-nanjing.myqcloud.com/default_tou.png"
    )